package vn.wallet.app.managedBean;

import java.io.Serializable;
import java.util.Date;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;

@ManagedBean(name = "testBean")
@ViewScoped
public class TestBean implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String firstname;
	private Date uDate;
	private java.sql.Date sDate;

	public String getFirstname() {
		return firstname;
	}

	public void setFirstname(String firstname) {
		this.firstname = firstname;
	}

	public Date getuDate() {
		return uDate;
	}

	public void setuDate(Date uDate) {
		System.out.println("setuDate: " + uDate.toString());
		this.uDate = uDate;
	}

	public java.sql.Date getsDate() {
		return sDate;
	}

	public void setsDate(java.sql.Date sDate) {
		System.out.println("setsDate: " + sDate.toString());
		this.sDate = sDate;
	}

	public void test() {
		if (uDate != null) {
			System.out.println("udate: " + uDate.toString());
		}

		if (sDate != null) {
			System.out.println("sdate: " + sDate.toString());
		}

		System.out.println("done test");
	}

}
